﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdTextProperties : IDisposable
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdTextProperties(IntPtr cPtr, bool cMemoryOwn)
		{
			this.swigCMemOwn = cMemoryOwn;
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdTextProperties obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdTextProperties()
		{
			this.Dispose();
		}

		public virtual void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdTextProperties(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
		}

		public ushort m_flags
		{
			get
			{
				ushort result = GlobalsPINVOKE.OdTextProperties_m_flags_get(this.swigCPtr);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
			set
			{
				GlobalsPINVOKE.OdTextProperties_m_flags_set(this.swigCPtr, value);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}
		}

		public double m_trackingPercent
		{
			get
			{
				double result = GlobalsPINVOKE.OdTextProperties_m_trackingPercent_get(this.swigCPtr);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
			set
			{
				GlobalsPINVOKE.OdTextProperties_m_trackingPercent_set(this.swigCPtr, value);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}
		}

		public ushort m_textQuality
		{
			get
			{
				ushort result = GlobalsPINVOKE.OdTextProperties_m_textQuality_get(this.swigCPtr);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}
			set
			{
				GlobalsPINVOKE.OdTextProperties_m_textQuality_set(this.swigCPtr, value);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}
		}

		public OdTextProperties() : this(GlobalsPINVOKE.new_OdTextProperties(), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isNormalText()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_isNormalText(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setNormalText(bool value)
		{
			GlobalsPINVOKE.OdTextProperties_setNormalText(this.swigCPtr, value);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isVerticalText()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_isVerticalText(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setVerticalText(bool value)
		{
			GlobalsPINVOKE.OdTextProperties_setVerticalText(this.swigCPtr, value);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isUnderlined()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_isUnderlined(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setUnderlined(bool value)
		{
			GlobalsPINVOKE.OdTextProperties_setUnderlined(this.swigCPtr, value);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isOverlined()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_isOverlined(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setOverlined(bool value)
		{
			GlobalsPINVOKE.OdTextProperties_setOverlined(this.swigCPtr, value);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isStriked()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_isStriked(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setStriked(bool value)
		{
			GlobalsPINVOKE.OdTextProperties_setStriked(this.swigCPtr, value);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isLastChar()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_isLastChar(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setLastChar(bool value)
		{
			GlobalsPINVOKE.OdTextProperties_setLastChar(this.swigCPtr, value);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isInBigFont()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_isInBigFont(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setInBigFont(bool value)
		{
			GlobalsPINVOKE.OdTextProperties_setInBigFont(this.swigCPtr, value);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isIncludePenups()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_isIncludePenups(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setIncludePenups(bool value)
		{
			GlobalsPINVOKE.OdTextProperties_setIncludePenups(this.swigCPtr, value);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isZeroNormals()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_isZeroNormals(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setZeroNormals(bool value)
		{
			GlobalsPINVOKE.OdTextProperties_setZeroNormals(this.swigCPtr, value);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool ttfPolyDraw()
		{
			bool result = GlobalsPINVOKE.OdTextProperties_ttfPolyDraw(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setTtfPolyDraw(bool bFlag)
		{
			GlobalsPINVOKE.OdTextProperties_setTtfPolyDraw(this.swigCPtr, bFlag);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double trackingPercent()
		{
			double result = GlobalsPINVOKE.OdTextProperties_trackingPercent(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setTrackingPercent(double trackingPercent)
		{
			GlobalsPINVOKE.OdTextProperties_setTrackingPercent(this.swigCPtr, trackingPercent);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public uint textQuality()
		{
			uint result = GlobalsPINVOKE.OdTextProperties_textQuality(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setTextQuality(uint val)
		{
			GlobalsPINVOKE.OdTextProperties_setTextQuality(this.swigCPtr, val);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public const int kNormalText = 1;

		public const int kVerticalText = 2;

		public const int kUnderlined = 4;

		public const int kOverlined = 8;

		public const int kLastChar = 16;

		public const int kInBigFont = 32;

		public const int kInclPenups = 64;

		public const int kZeroNormals = 128;

		public const int kBezierCurves = 256;

		public const int kStriked = 512;

		private object locker = new object();

		private HandleRef swigCPtr;

		protected bool swigCMemOwn;
	}
}
